// 浸渍
import request from '@/utils/http'

// 1
export function AddOilone (payload) {
  return request({
    url: '/v1/AddHourData',
    method: 'post',
    data: payload // post方法里的是传参数是data  put和post一样
  })
}
// 天然气添加
export function AddOileight (payload) {
  return request({
    url: '/v1/AddGasUsage',
    method: 'post',
    data: payload
  })
}
// 添加浸渍系统
export function AddImpreg (payload) {
  return request({
    url: '/v1/AddDippingNote',
    method: 'post',
    data: payload
  })
}
export function GetOilone (payload) {
  return request({
    url: '/v2/GetHourData',
    method: 'get',
    params: payload // get 方法里传参数是params  delete和get一样
  })
}

export function GetOileight (payload) {
  return request({
    url: '/v2/GetGas',
    method: 'get',
    params: payload
  })
}

// 获取信息浸渍记录
export function GetSys (payload) {
  return request({
    url: '/v2/GetSysNote',
    method: 'get',
    params: payload
  })
}

// 修改小时oil
export function UpdateOilone (payload) {
  return request({
    url: '/v3/UpdateHourData',
    method: 'put',
    data: payload
  })
}
// 修改天然气
export function UpdateOileight (payload) {
  return request({
    url: '/v3/UpdateGasUsage',
    method: 'put',
    data: payload
  })
}
// 修改浸渍系统
export function UpdateSys (payload) {
  return request({
    url: '/v3/UpdateDipNote',
    method: 'put',
    data: payload
  })
}
// 修改浸渍系统框号信息
export function UpdateFrame (payload) {
  return request({
    url: '/v3/UpdateDipNote2',
    method: 'put',
    data: payload
  })
}
